Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pillar/volumemgr: Kick watchdog inside for loops #3596

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

rene
Copy link
Contributor

@rene rene commented Nov 16, 2023

createOrUpdateDiskMetrics() has a lot of for loops that can take more than the watchdog time (500s) to execute. This commit adds some kicks to the watchdog inside the for loops.

@rene rene added the stable Should be backported to stable release(s) label Nov 16, 2023
@rene rene requested review from deitch and rouming as code owners November 16, 2023 13:04
Copy link

codecov bot commented Nov 16, 2023

Codecov Report

Attention: 13 lines in your changes are missing coverage. Please review.

Comparison is base (03357a6) 19.42% compared to head (171318a) 19.42%.

Files Patch % Lines
pkg/pillar/cmd/volumemgr/handlediskmetrics.go 0.00% 13 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3596      +/-   ##
==========================================
- Coverage   19.42%   19.42%   -0.01%     
==========================================
  Files         232      232              
  Lines       50508    50515       +7     
==========================================
+ Hits         9812     9813       +1     
- Misses      39976    39981       +5     
- Partials      720      721       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

createOrUpdateDiskMetrics() has a lot of for loops that can take more than
the watchdog time (500s) to execute. This commit adds some kicks to the
watchdog inside these loops.

Signed-off-by: Renê de Souza Pinto <rene@renesp.com.br>
@rene
Copy link
Contributor Author

rene commented Nov 17, 2023

Updates in this PR:

Copy link
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eriknordmark eriknordmark merged commit 78273b8 into lf-edge:master Nov 20, 2023
22 of 30 checks passed
@rene rene deleted the kick-watchdog branch November 22, 2023 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stable Should be backported to stable release(s)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants